package com.heima.apis.admin;

import com.heima.model.admin.dtos.ChannelDto;
import com.heima.model.admin.dtos.SensitiveDto;
import com.heima.model.common.dtos.ResponseResult;
import com.heima.model.wemedia.pojos.WmChannel;
import com.heima.model.wemedia.pojos.WmSensitive;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

//@FeignClient(value = "leadnews-wemedia")
public interface IAdminChannelClient {
    @PostMapping("/admin/api/v1/channel/save")
    ResponseResult addchannel(@RequestBody WmChannel wmChannel);

    @PostMapping("/admin/api/v1/channel/list")
    ResponseResult getList(@RequestBody ChannelDto channelDto);

    @GetMapping("/admin/api/v1/channel/del/{id}")
    ResponseResult delete(@PathVariable Integer id);

    @PostMapping("/admin/api/v1/channel/update")
    ResponseResult updatechannel(@RequestBody WmChannel channel);

}
